﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Refract.Views;
using System.Windows;

namespace Refract.Tests
{
    [TestClass]
    public class ViewFixture
    {
        private View _view = null;

        
        [TestMethod]
        public void View_is_constructed()
        {
            Assert.IsNotNull(_view);
        }

        [TestMethod]
        public void View_hides_itself()
        {
            _view.Show();
            _view.Hide();
            Assert.AreEqual(Visibility.Collapsed, _view.Visibility);
        }

        [TestMethod]
        private void View_shows_itself()
        {
            _view.Hide();
            _view.Show();            
            Assert.AreEqual(Visibility.Visible, _view.Visibility);
        }

        [TestInitialize]
        public void SetupTest()
        {
            _view = new View();
        }


    }
}
